<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFhProductTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('fh_product', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->default('')->comment('产品名称');
            $table->string('url')->default('')->comment('产品地址');
            $table->string('img')->nullable()->comment('产品图片');
            $table->string('keyword')->nullable()->comment('SEO关键词');
            $table->string('description')->nullable()->comment('SEO描述');
            $table->string('Introduction')->default('')->comment('产品简介');
            $table->string('banners')->default('')->comment('产品大图');
            $table->integer('sort')->default('1')->nullable()->comment('排序');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('fh_product');
    }
}
